﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="JjProdForInput.aspx.cs" Inherits="UI.ModSalary.JjProdForInput" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>计件产品</title>
      <link rel="stylesheet" type="text/css" href="../Styles/BaseStyle.css"  />
</head>
<body>
    <form id="form1" runat="server">
    <div style="text-align: center">
    <br />
        关键字<asp:TextBox ID="txtSearchWord" runat="server"></asp:TextBox>
        <asp:Button ID="btnSearch" runat="server" Text="搜索" Width="59px" OnClick="btnSearch_Click" /><br />
        <br />
        <br />
        <asp:GridView ID="gvList" runat="server" Width="95%" AllowPaging="True" 
         AutoGenerateColumns="False"  CellPadding="4" ForeColor="#333333" 
         GridLines="None" PageSize="30" DataKeyNames="ProCode" 
         onpageindexchanging="gvList_PageIndexChanging" >
            <Columns>
                 <asp:TemplateField HeaderText="编号"  SortExpression="ProCode">
                    <ItemTemplate>
                        <a style="cursor: hand" onclick="javascript:aclose('<%# Eval("ProCode") %>','<%# Eval("Name") %>','<%# Eval("ProModel") %>')">
                            <%# Eval("ProCode")%></a>
                    </ItemTemplate>
                </asp:TemplateField>
           
              <asp:TemplateField HeaderText="产品名称"  SortExpression="Name">
                    <ItemTemplate>
                        <a style="cursor: hand" onclick="javascript:aclose('<%# Eval("ProCode") %>','<%# Eval("Name") %>','<%# Eval("ProModel") %>')">
                            <%# Eval("Name")%></a>
                    </ItemTemplate>
                </asp:TemplateField>
              <asp:BoundField DataField="ProModel" HeaderText="型号" SortExpression="ProModel">               
            </asp:BoundField>
              <asp:BoundField DataField="TypeName" HeaderText="类别" SortExpression="TypeName">               
            </asp:BoundField>
              <asp:BoundField DataField="Unit" HeaderText="单位" SortExpression="Unit">              
            </asp:BoundField>
                   
            </Columns>
            <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
            <RowStyle BackColor="#E3EAEB" />
         
            <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
            <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
            <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="White" />
        </asp:GridView>
       
    </div>
    </form>
</body>
</html>
<script type="text/javascript">
    function aclose(proCode, name, model) {
        opener.form1.txtProCode.value = proCode;
        opener.form1.txtProName.value = name;
        opener.form1.txtProModel.value = model;
                window.close();
    }
</script>
